package xyz.suancaiyu.eurekafeignclient.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import xyz.suancaiyu.eurekafeignclient.service.HiService;

@RestController
public class HiController {


    @Autowired
    HiService hiService;

    @RequestMapping("/hi")
    public String sayHi(@RequestParam(defaultValue = "suancaiyu", required = false) String name) {
        return hiService.sayHi(name);
    }


}
